import request from '@/common/js/request.js'

export default {
  
  // 轮播图
  getAdvertList(){
    return request({
      url:`/article/api/advert/show`
    })
  },
  
  // 查询分类与标签信息
  getCategoryList(){
    return request({
      url:'/article/api/category/label/list'
    })
  },
  
  getList(query, current = 1, size = 10){
    return request({
      url:'/course/api/course/search',
      method:'POST',
      data:{...query,current,size}
    })
  }
  
}